export function useRequireField() {
    const requireFields = [
        {
            key: "custom_identifier",
            message: "请选择自定义标识符!"
        },
        {
            key: "rule_name",
            message: "请填写规则名称!"
        },
        {
            key: "rule_type",
            message: "请选择规则规则!"
        },
        {
            key: "publish_type",
            message: "请选择发布类型!"
        },
        {
            key: "day_pub_num",
            message: "请填写发布数量!"
        },
        {
            key: "column_ids",
            message: "请选择栏目ID!"
        },
        {
            key: "create_id",
            message: "请选择创建人!"
        },
        {
            key: "custom_attrs",
            message: "请选择自定义属性!"
        },
        {
            key: "es_search.index",
            message: "请选择文章索引或搜索!"
        },
        {
            key: "es_search.body",
            message: "最少查询一次文章数量!"
        }
    ];
    // 只有状态为true,才检查
    const otherRequireFields = [
        { message: "请填写标题替换规则!", key: "title_replace.replace_rule" },
        { message: "请填写内容替换规则!", key: "content_replace.replace_rule" },
        { message: "请填写标题插入的关键词!", key: "title_insert_kwd.keywords" },
        { message: "请填写标题插入概率!", key: "title_insert_kwd.chance" },
        { message: "请填写头部插入的关键词!", key: "head_insert_kwd.keywords" },
        { message: "请填写中部定位标签!", key: "center_insert_kwd.position_char" },
        { message: "请填写中部插入的关键词!", key: "center_insert_kwd.keywords" },
        { message: "请填写底部插入的关键词!", key: "footer_insert_kwd.keywords" },
        { message: "请选择组合图片的背景!", key: "insert_zuhe_img.background" },
        { message: "请选择组合图片的logo!", key: "insert_zuhe_img.logo" },
        { message: "请选择组合图片的文字类型!", key: "insert_zuhe_img.font_type" },
        { message: "请填写组合图片的文字!", key: "insert_zuhe_img.text" },
        { message: "请搜索一次图片!", key: "insert_img.esBody" }
    ];
    return [requireFields, otherRequireFields];
}
